/*
 * ScriptPropertiesException.java
 *
 * Created on July 14, 2007, 2:18 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package filecopier.script;

import java.io.File;

/**
 *
 * @author david
 */
public class ScriptPropertiesException extends Exception {

    ScriptPropertiesInterface.ScriptType scriptType = null;
    File scriptFile = null;

    /**
     * Creates a new instance of ScriptPropertiesException
     */
    public ScriptPropertiesException(String reason, ScriptPropertiesInterface.ScriptType scriptType, File scriptFile) {
        super(reason);
        this.scriptType = scriptType;
        this.scriptFile = scriptFile;
    }

    public ScriptPropertiesException(Throwable cause, ScriptPropertiesInterface.ScriptType scriptType, File scriptFile) {
        super(cause);
        this.scriptType = scriptType;
        this.scriptFile = scriptFile;
    }

    public ScriptPropertiesException(String reason, Throwable cause, ScriptPropertiesInterface.ScriptType scriptType, File scriptFile) {
        super(reason, cause);
        this.scriptType = scriptType;
        this.scriptFile = scriptFile;
    }

    public ScriptPropertiesInterface.ScriptType getScriptType() {
        return scriptType;
    }

    public File getScriptFile() {
        return scriptFile;
    }
}
